package com.example.newsmanager.entity.DTO;

import com.baomidou.mybatisplus.annotation.TableId;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class UpdateUserDTO {

    @NotNull(message = "用户名不能为null")
    @NotEmpty(message = "用户名不能为空")
    private String nickname;

    private String avatar;
    private String gender;
    private Integer age;

    @NotNull(message = "邮箱不能为null")
    @NotEmpty(message = "邮箱不能为空")
    @Email
    private String email;

    private String signature;

}
